home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / IsHwnd.au3 < prev    next >
Text File  |  2007-09-08  |  185b  |  8 lines

  1. Run("notepad.exe")
  2. Local $hWnd = WinGetHandle("Untitled - Notepad")
  3. If IsHWnd($hWnd) Then
  4.     MsgBox(4096, "", "It's a valid HWND")
  5. Else
  6.     MsgBox(4096, "", "It's not an HWND")
  7. EndIf
  8.